#include "..\System.h"

//+ boxing/unboxing
internal System_Object *___boxdouble(double value)
{
	System_Double *box = new(,System_Double);
	box->m_value = value;
	return (System_Object *)box;
}

internal double ___unboxdouble(System_Object *value)
{
	return ((System_Double *)value)->m_value;
}

//+ type
Implement_Type(System_Double,System_Object,)
Implement_DefaultCtor(System_Double,System_Object)
System_Type _doubleType = { (__typeCtor)null, L"double", (__typeBoxer)&___boxdouble, (__typeUnboxer)&___unboxdouble, (char*)null, _TypeFlags_Value };
//Declare_System(System_Double, double)
//Implement_System(System_Double, double)